<template>
	<view class="zhuNavBar" :style="{background:bgColor}">
		<view class="zhuNavBar-box">
			<u-icon name="arrow-left" :color="leftColor" size="22" @click="onBack"></u-icon>
			<view class="title">
				<text :style="{color:sizeColor}">{{title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		name:'zhuNavBar',
		props:{
			title:{
				type:String,
				default:''
			},
			leftColor:{
				type:String,
				default:'#fff'
			},
			bgColor:{
				type:String,
				default:'rgba(0,0,0,0)'
			},
			sizeColor:{
				type:String,
				default:'#fff'
			}
		},
		methods:{
			onBack(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.zhuNavBar{
	position: fixed;
	top: 0;
	left: 0;
	padding-top: var(--status-bar-height);
	width: 100vw;
	.zhuNavBar-box{
		display: flex;
		align-items: center;
		height: 88rpx;
		padding: 0 30rpx;
		.title{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			padding-right: 20rpx;
			text{
				font-size: 30rpx;
				font-weight: 700;
				color: #ffffff;
			}
		}
	}
}
</style>
